//Drone.cpp
/*
Drone class
Created by: Nick Taylor
*/

#include "Drone.h"
#include <cmath>
using namespace std;

Drone::Drone()
{
	roomSize=7;
	size = 0.3f;	// Temporary size 
	xPos = 0;
	yPos = 0;
	zPos = 0;
}

Drone::Drone(float mRoomSize)
{
	roomSize = mRoomSize;
	size = 0.3f;	// Temporary size 
	xPos = 0;
	yPos = 0;
	zPos = 0;
}

float Drone::getXPos(){
	return xPos;
}

float Drone::getYPos(){
	return yPos;
}

float Drone::getZPos(){
	return zPos;
}

float Drone::getSize()
{
	return size;
}

void Drone::setXPos(float x){
	xPos=x;
}

void Drone::setYPos(float y){
	yPos=y;
}

void Drone::setZPos(float z){
	zPos=z;
}

void Drone::randomizePos(){
	xPos = rand() % int(roomSize) - int(roomSize/2);
	//yPos = rand() % int(roomSize) - int(roomSize/2);
	yPos = 0;
	zPos = rand() % int(roomSize) - int(roomSize/2);
}
